# 定义公共断言方法
def common_assert(response, status_code=200, success=True, code=10000, message="成功"):
    # 断言
    assert response.status_code == status_code
    assert response.json().get("success") is success
    assert response.json().get("code") == code
    assert message in response.json().get("message")
